# 导包
from common.dbutil import DBUtil

# 调用封装方法、执行sql语句
# 执行sql语句
# 需求：获取服务器版本信息
# sql = "select version();"

# 需求：将图书表中【水浒传】的阅读量设置为20000
# sql = "update t_book set `read`=20000 where id=4;"
# 插入图书title='东游记'， pub_date=1990-01-01
# sql = "insert into t_book(title, pub_date) values('东游记', '1990-01-01');"
# 删除插入【东游记】图书信息
sql = "delete from t_book;"


print(DBUtil().exe_sql(sql))
